/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package org.apli.haiam.ejb.entidades;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 *
 * @author Informática
 */
@Entity
@Table(name = "hos_signos_vitales")
@NamedQueries({
    @NamedQuery(name = "HosSignosVitales.findAll", query = "SELECT h FROM HosSignosVitales h")})
public class HosSignosVitales implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @Basic(optional = false)
    @NotNull
    @Column(name = "hsv_id")
    private Integer hsvId;
    @Column(name = "hsv_hora_pm")
    @Temporal(TemporalType.TIME)
    private Date hsvHoraPm;
    @Basic(optional = false)
    @NotNull
    @Column(name = "hsv_hora_am")
    @Temporal(TemporalType.TIME)
    private Date hsvHoraAm;
    @Column(name = "hsv_dia_internacion")
    private Integer hsvDiaInternacion;
    @Column(name = "hsv_dia_posquirurgico")
    private Integer hsvDiaPosquirurgico;
    // @Max(value=?)  @Min(value=?)//if you know range of your decimal fields consider using these annotations to enforce field validation
    @Column(name = "hsv_pulso_pm")
    private BigDecimal hsvPulsoPm;
    @Column(name = "hsv_pulso_am")
    private BigDecimal hsvPulsoAm;
    @Column(name = "hsv_temperatura_pm")
    private BigDecimal hsvTemperaturaPm;
    @Column(name = "hsv_temperatura_am")
    private BigDecimal hsvTemperaturaAm;
    @Column(name = "hsv_aseo_banio")
    private Boolean hsvAseoBanio;
    @Column(name = "hsv_peso")
    private BigDecimal hsvPeso;
    @Column(name = "hsv_dieta_administrada")
    private Integer hsvDietaAdministrada;
    @Column(name = "hsv_numero_comidas")
    private Integer hsvNumeroComidas;
    @Column(name = "hsv_numero_deposiciones")
    private Integer hsvNumeroDeposiciones;
    @Column(name = "hsv_actividad_fisica")
    private Integer hsvActividadFisica;
    @Column(name = "hsv_cambio_sonda")
    private Integer hsvCambioSonda;
    @Column(name = "hsv_recanalizacion_via")
    @Temporal(TemporalType.TIME)
    private Date hsvRecanalizacionVia;
    @Column(name = "hsv_subtotal_oral")
    private BigDecimal hsvSubtotalOral;
    @Column(name = "hsv_subtotal_parental")
    private BigDecimal hsvSubtotalParental;
    @Column(name = "hsv_subtotal_orina")
    private BigDecimal hsvSubtotalOrina;
    @Column(name = "hsv_subtotal_drenaje")
    private BigDecimal hsvSubtotalDrenaje;
    @Column(name = "hsv_subtotal_otros")
    private BigDecimal hsvSubtotalOtros;
    @Column(name = "hsv_total_ingresos")
    private BigDecimal hsvTotalIngresos;
    @Column(name = "hsv_total_eliminaciones")
    private BigDecimal hsvTotalEliminaciones;
    @Column(name = "hsv_frecuencia_respiratoria")
    private BigDecimal hsvFrecuenciaRespiratoria;
    @Column(name = "hsv_presion_sistolica")
    private BigDecimal hsvPresionSistolica;
    @Column(name = "hsv_presion_diastolica")
    private BigDecimal hsvPresionDiastolica;
    @Basic(optional = false)
    @NotNull
    @Column(name = "hsv_id_usuario")
    private int hsvIdUsuario;
    @Basic(optional = false)
    @NotNull
    @Size(min = 1, max = 128)
    @Column(name = "hsv_nombre_usuario")
    private String hsvNombreUsuario;
    @JoinColumn(name = "hin_id", referencedColumnName = "hin_id")
    @ManyToOne(fetch = FetchType.LAZY)
    private HosInternacion hosInternacion;
    @OneToMany(mappedBy = "hosSignosVitales", fetch = FetchType.LAZY)
    private List<HosControlIngesta> hosControlIngestaList;

    public HosSignosVitales() {
    }

    public HosSignosVitales(Integer hsvId) {
        this.hsvId = hsvId;
    }

    public HosSignosVitales(Integer hsvId, Date hsvHoraAm, int hsvIdUsuario, String hsvNombreUsuario) {
        this.hsvId = hsvId;
        this.hsvHoraAm = hsvHoraAm;
        this.hsvIdUsuario = hsvIdUsuario;
        this.hsvNombreUsuario = hsvNombreUsuario;
    }

    public Integer getHsvId() {
        return hsvId;
    }

    public void setHsvId(Integer hsvId) {
        this.hsvId = hsvId;
    }

    public Date getHsvHoraPm() {
        return hsvHoraPm;
    }

    public void setHsvHoraPm(Date hsvHoraPm) {
        this.hsvHoraPm = hsvHoraPm;
    }

    public Date getHsvHoraAm() {
        return hsvHoraAm;
    }

    public void setHsvHoraAm(Date hsvHoraAm) {
        this.hsvHoraAm = hsvHoraAm;
    }

    public Integer getHsvDiaInternacion() {
        return hsvDiaInternacion;
    }

    public void setHsvDiaInternacion(Integer hsvDiaInternacion) {
        this.hsvDiaInternacion = hsvDiaInternacion;
    }

    public Integer getHsvDiaPosquirurgico() {
        return hsvDiaPosquirurgico;
    }

    public void setHsvDiaPosquirurgico(Integer hsvDiaPosquirurgico) {
        this.hsvDiaPosquirurgico = hsvDiaPosquirurgico;
    }

    public BigDecimal getHsvPulsoPm() {
        return hsvPulsoPm;
    }

    public void setHsvPulsoPm(BigDecimal hsvPulsoPm) {
        this.hsvPulsoPm = hsvPulsoPm;
    }

    public BigDecimal getHsvPulsoAm() {
        return hsvPulsoAm;
    }

    public void setHsvPulsoAm(BigDecimal hsvPulsoAm) {
        this.hsvPulsoAm = hsvPulsoAm;
    }

    public BigDecimal getHsvTemperaturaPm() {
        return hsvTemperaturaPm;
    }

    public void setHsvTemperaturaPm(BigDecimal hsvTemperaturaPm) {
        this.hsvTemperaturaPm = hsvTemperaturaPm;
    }

    public BigDecimal getHsvTemperaturaAm() {
        return hsvTemperaturaAm;
    }

    public void setHsvTemperaturaAm(BigDecimal hsvTemperaturaAm) {
        this.hsvTemperaturaAm = hsvTemperaturaAm;
    }

    public Boolean getHsvAseoBanio() {
        return hsvAseoBanio;
    }

    public void setHsvAseoBanio(Boolean hsvAseoBanio) {
        this.hsvAseoBanio = hsvAseoBanio;
    }

    public BigDecimal getHsvPeso() {
        return hsvPeso;
    }

    public void setHsvPeso(BigDecimal hsvPeso) {
        this.hsvPeso = hsvPeso;
    }

    public Integer getHsvDietaAdministrada() {
        return hsvDietaAdministrada;
    }

    public void setHsvDietaAdministrada(Integer hsvDietaAdministrada) {
        this.hsvDietaAdministrada = hsvDietaAdministrada;
    }

    public Integer getHsvNumeroComidas() {
        return hsvNumeroComidas;
    }

    public void setHsvNumeroComidas(Integer hsvNumeroComidas) {
        this.hsvNumeroComidas = hsvNumeroComidas;
    }

    public Integer getHsvNumeroDeposiciones() {
        return hsvNumeroDeposiciones;
    }

    public void setHsvNumeroDeposiciones(Integer hsvNumeroDeposiciones) {
        this.hsvNumeroDeposiciones = hsvNumeroDeposiciones;
    }

    public Integer getHsvActividadFisica() {
        return hsvActividadFisica;
    }

    public void setHsvActividadFisica(Integer hsvActividadFisica) {
        this.hsvActividadFisica = hsvActividadFisica;
    }

    public Integer getHsvCambioSonda() {
        return hsvCambioSonda;
    }

    public void setHsvCambioSonda(Integer hsvCambioSonda) {
        this.hsvCambioSonda = hsvCambioSonda;
    }

    public Date getHsvRecanalizacionVia() {
        return hsvRecanalizacionVia;
    }

    public void setHsvRecanalizacionVia(Date hsvRecanalizacionVia) {
        this.hsvRecanalizacionVia = hsvRecanalizacionVia;
    }

    public BigDecimal getHsvSubtotalOral() {
        return hsvSubtotalOral;
    }

    public void setHsvSubtotalOral(BigDecimal hsvSubtotalOral) {
        this.hsvSubtotalOral = hsvSubtotalOral;
    }

    public BigDecimal getHsvSubtotalParental() {
        return hsvSubtotalParental;
    }

    public void setHsvSubtotalParental(BigDecimal hsvSubtotalParental) {
        this.hsvSubtotalParental = hsvSubtotalParental;
    }

    public BigDecimal getHsvSubtotalOrina() {
        return hsvSubtotalOrina;
    }

    public void setHsvSubtotalOrina(BigDecimal hsvSubtotalOrina) {
        this.hsvSubtotalOrina = hsvSubtotalOrina;
    }

    public BigDecimal getHsvSubtotalDrenaje() {
        return hsvSubtotalDrenaje;
    }

    public void setHsvSubtotalDrenaje(BigDecimal hsvSubtotalDrenaje) {
        this.hsvSubtotalDrenaje = hsvSubtotalDrenaje;
    }

    public BigDecimal getHsvSubtotalOtros() {
        return hsvSubtotalOtros;
    }

    public void setHsvSubtotalOtros(BigDecimal hsvSubtotalOtros) {
        this.hsvSubtotalOtros = hsvSubtotalOtros;
    }

    public BigDecimal getHsvTotalIngresos() {
        return hsvTotalIngresos;
    }

    public void setHsvTotalIngresos(BigDecimal hsvTotalIngresos) {
        this.hsvTotalIngresos = hsvTotalIngresos;
    }

    public BigDecimal getHsvTotalEliminaciones() {
        return hsvTotalEliminaciones;
    }

    public void setHsvTotalEliminaciones(BigDecimal hsvTotalEliminaciones) {
        this.hsvTotalEliminaciones = hsvTotalEliminaciones;
    }

    public BigDecimal getHsvFrecuenciaRespiratoria() {
        return hsvFrecuenciaRespiratoria;
    }

    public void setHsvFrecuenciaRespiratoria(BigDecimal hsvFrecuenciaRespiratoria) {
        this.hsvFrecuenciaRespiratoria = hsvFrecuenciaRespiratoria;
    }

    public BigDecimal getHsvPresionSistolica() {
        return hsvPresionSistolica;
    }

    public void setHsvPresionSistolica(BigDecimal hsvPresionSistolica) {
        this.hsvPresionSistolica = hsvPresionSistolica;
    }

    public BigDecimal getHsvPresionDiastolica() {
        return hsvPresionDiastolica;
    }

    public void setHsvPresionDiastolica(BigDecimal hsvPresionDiastolica) {
        this.hsvPresionDiastolica = hsvPresionDiastolica;
    }

    public int getHsvIdUsuario() {
        return hsvIdUsuario;
    }

    public void setHsvIdUsuario(int hsvIdUsuario) {
        this.hsvIdUsuario = hsvIdUsuario;
    }

    public String getHsvNombreUsuario() {
        return hsvNombreUsuario;
    }

    public void setHsvNombreUsuario(String hsvNombreUsuario) {
        this.hsvNombreUsuario = hsvNombreUsuario;
    }

    public HosInternacion getHosInternacion() {
        return hosInternacion;
    }

    public void setHosInternacion(HosInternacion hosInternacion) {
        this.hosInternacion = hosInternacion;
    }

    public List<HosControlIngesta> getHosControlIngestaList() {
        return hosControlIngestaList;
    }

    public void setHosControlIngestaList(List<HosControlIngesta> hosControlIngestaList) {
        this.hosControlIngestaList = hosControlIngestaList;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (hsvId != null ? hsvId.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof HosSignosVitales)) {
            return false;
        }
        HosSignosVitales other = (HosSignosVitales) object;
        if ((this.hsvId == null && other.hsvId != null) || (this.hsvId != null && !this.hsvId.equals(other.hsvId))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "org.apli.haiam.ejb.entidades.HosSignosVitales[ hsvId=" + hsvId + " ]";
    }
    
}
